package com.chinasofti.zbest.dao;

import com.chinasofti.zbest.dao.model.Zborder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author zbest
 * @since 2019-05-28
 */
public interface OrderMapper extends BaseMapper<Zborder> {

    void createOrder(Zborder order);

    List<Zborder> queryAllOrderById(@Param("userId") Integer userId);

    void modifyStatus(@Param("orderStatus") String orderStatus,@Param("orderNum") String orderNum);

    List<Zborder> queryByStatus(@Param("userId") Integer userId ,@Param("status") String status);

    Zborder queryByOrderNum(@Param("userId")Integer userId ,@Param("orderNum") String orderNum);

    void modifyOrderByOrderStatus(@Param("orderNum")String orderNum , @Param("status") String status);

}
